# 写个程序打印出接下来的20个闰年
def isrunnian(year):
    if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0:
        return True
    else:
        return False


start = 2017
count = 1
while count <= 20:
    if isrunnian(start):
        count = count + 1
        print(start)
    start = start + 1
